package com.example.springbootlearn.listener;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author caiji Mr. Li
 * @date 2019/10/28 18:12
 */

//@Component
public class BlackListNotifier {

    private String notificationAddress;

    public void setNotificationAddress(String notificationAddress) {
        this.notificationAddress = notificationAddress;
    }

    @EventListener
    public void processBlackListEvent(BlackListEvent event) {
        System.out.println("BlackListNotifier :" + event.getSource().toString());
    }
}
